FROM openjdk:8-jre-slim-buster
# 指定时区
RUN echo "Asia/Shanghai" > /etc/timezone;dpkg-reconfigure -f noninteractive tzdata
# 指定工作目录
WORKDIR /app
# copy目录 
COPY cqqs-common/target/cqqs-common-1.0.0.jar /app/common.jar
COPY cqqs-server/target/cqqs-server-1.0.0.jar /app/app.jar
ENTRYPOINT ["sh","-c","java -jar /app/app.jar"]